# -*- coding: utf-8 -*-
"""
@Time ： 2021/1/21 16:15
@Auth ： 张张呀
@File ：测测.py
@IDE ：PyCharm
@Motto：ABC(Always Be Coding)

"""
import requests

url = 'https://maoyan.com/board/4'
headers = {
    'User-Agent': "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/22.0.1207.1 Safari/537.1"

}
resp = requests.get(url, headers)
print(resp.apparent_encoding)
print(resp.text.encode('ISO-8859-1').decode('utf-8'))
